﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using OnlineLibrary.ToLinq;

namespace FinalOnlineLibrary.Models
{
    /// <summary>
    /// Create DataContext
    /// </summary>
    public class DataProvider
    {
        private static OnlineLibraryDBDataContext db;
        public static OnlineLibraryDBDataContext Db 
        {
            get 
            {
                if (db == null)
                    db = new OnlineLibraryDBDataContext();
                return db;
            }
        }
    }
}